# coding=utf8
__author__ = 'valux'
__mail__ = 'valux@qq.com'



class OOP(object):

    def __new__(cls, *args, **kwargs):
        print('new')
        return object.__new__(cls, args, kwargs)

    def __init__(self):
        print('init')

    def __del__(self):
        print('del')


class OOPChild(OOP):

    def __new__(cls, *args, **kwargs):
        print('new in Child')
        return OOP.__new__(cls, args, kwargs)

    def __init__(self):
        # super(OOPChild, self).__init__()
        OOP.__init__(self)
        print('init in Child')

    def __del__(self):
        print('del in Child')



if __name__ == '__main__':
    # oop = OOP()



    oopChild = OOPChild()


    """
    >>> new
    >>> init
    >>> del
    """



